home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D Game Programming All in One
/
3D Game Programming All in One Disc.iso
/
3D2E
/
RESOURCES
/
CH3
/
sizeshape.cs
< prev
next >
Wrap
Text File
|
2006-06-28
|
615b
|
19 lines
// ========================================================================
// sizeshape.cs
//
// This module contains a function for scaling a specified shape.
// ========================================================================
function SizeShape(%shape, %scale)
// ----------------------------------------------------
// moves the %shape by %scale amount
// ----------------------------------------------------
{
echo ("SizeShape: shape id: ", %shape);
echo ("SizeShape: angle: ", %scale);
%shape.setScale(%scale SPC %scale SPC %scale);
echo ("SizeShape: done.");
}